/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-16 13:52:13
 * @FilePath: /yuxiuproweb/src/api/asc/other/index.js
 */
import request from "@/utils/request";

// 查询订单-其他定制列表
export function listOther(query) {
  return request({
    url: "/pro/other/list",
    method: "get",
    params: query,
  });
}

// 查询订单-其他定制详细
export function getOther(orderCustomOtherId) {
  return request({
    url: "/pro/other/" + orderCustomOtherId,
    method: "get",
  });
}

// 新增订单-其他定制
export function addOther(data) {
  return request({
    url: "/pro/other",
    method: "post",
    data: data,
  });
}

// 修改订单-其他定制
export function updateOther(data) {
  return request({
    url: "/pro/other",
    method: "put",
    data: data,
  });
}

// 删除订单-其他定制
export function delOther(orderCustomOtherIds) {
  return request({
    url: "/pro/other/" + orderCustomOtherIds,
    method: "delete",
  });
}

// 批量-保存订单-窗幔定制
export function batchEditOther(data) {
  return request({
    url: "/pro/other/batchEdit",
    method: "put",
    data: data,
  });
}
